package com.team.recruitment_management_system.pojo.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Schema(description = "用户密码登录对象")
@Data
public class LoginDto {
    @Schema(description="用户名")
    @NotNull(message = "用户名不能为空")
    private String username;
    @Schema(description = "密码")
    @NotNull(message = "密码不能为空")
    @Length(min = 6, max = 16,message = "密码⻓度⾄少6位但不超过16位!")
    private String password;
}
